#include <stdio.h>
#include <string.h>

int main()
{
	extern char ** environ;
	char **p = environ;
	for (;*p != NULL ; *p++)
	{
		printf("%s\n", *p);
	}
	char value[100] = {};
	p = environ;	
	while (*p)
	{
		if (strncmp(*p, "LANG=", 5) == 0)
		{
			strcpy(value, *p + 5);
			break;
		}
		++p;
	}
	printf("%s\n", value);
}
